
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>表格 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="GRIDEXPBAR.html" />
    
    
    <link rel="prev" href="FORM.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="2.1" >
            
                <span>
            
                    
                    应用
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="../APPS/LOCALE.html">
            
                <a href="../APPS/LOCALE.html">
            
                    
                    国际化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="../APPS/EXTENDED.html">
            
                <a href="../APPS/EXTENDED.html">
            
                    
                    快速介入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="../APPS/STYLE.html">
            
                <a href="../APPS/STYLE.html">
            
                    
                    样式规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="../APPS/NAVG.html">
            
                <a href="../APPS/NAVG.html">
            
                    
                    导航模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="../APPS/TEMP.html">
            
                <a href="../APPS/TEMP.html">
            
                    
                    临时模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="../APPS/Theme.html">
            
                <a href="../APPS/Theme.html">
            
                    
                    应用主题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="../APPS/NAVPARAM.html">
            
                <a href="../APPS/NAVPARAM.html">
            
                    
                    自定义导航参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="../APPS/VIEWMESSAGE.html">
            
                <a href="../APPS/VIEWMESSAGE.html">
            
                    
                    视图消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" >
            
                <span>
            
                    
                    视图
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="../VIEWS/EDITVIEW.html">
            
                <a href="../VIEWS/EDITVIEW.html">
            
                    
                    实体编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="../VIEWS/EDITVIEWPAGE.html">
            
                <a href="../VIEWS/EDITVIEWPAGE.html">
            
                    
                    实体编辑视图(分页关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="../VIEWS/EDITVIEWUPDOWN.html">
            
                <a href="../VIEWS/EDITVIEWUPDOWN.html">
            
                    
                    实体编辑视图(上下关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="../VIEWS/EDITVIEWABOUT.html">
            
                <a href="../VIEWS/EDITVIEWABOUT.html">
            
                    
                    实体编辑视图(左右关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="../VIEWS/MEDITVIEW.html">
            
                <a href="../VIEWS/MEDITVIEW.html">
            
                    
                    实体多表单编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="../VIEWS/GRIDVIEW.html">
            
                <a href="../VIEWS/GRIDVIEW.html">
            
                    
                    实体表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="../VIEWS/GRIDEXPVIEW.html">
            
                <a href="../VIEWS/GRIDEXPVIEW.html">
            
                    
                    实体表格导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="../VIEWS/TABEXPVIEW.html">
            
                <a href="../VIEWS/TABEXPVIEW.html">
            
                    
                    实体分页导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.9" data-path="../VIEWS/EntityDataKanbanView.html">
            
                <a href="../VIEWS/EntityDataKanbanView.html">
            
                    
                    实体数据看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.10" data-path="../VIEWS/LISTVIEW.html">
            
                <a href="../VIEWS/LISTVIEW.html">
            
                    
                    实体列表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.11" data-path="../VIEWS/LISTEXPVIEW.html">
            
                <a href="../VIEWS/LISTEXPVIEW.html">
            
                    
                    实体列表导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.12" data-path="../VIEWS/DATAVIEW.html">
            
                <a href="../VIEWS/DATAVIEW.html">
            
                    
                    实体数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.13" data-path="../VIEWS/OPTIONVIEW.html">
            
                <a href="../VIEWS/OPTIONVIEW.html">
            
                    
                    实体选项操作视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.14" data-path="../VIEWS/DATAVIEWEXPVIEW.html">
            
                <a href="../VIEWS/DATAVIEWEXPVIEW.html">
            
                    
                    实体卡片导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.15" data-path="../VIEWS/CALENDARVIEW.html">
            
                <a href="../VIEWS/CALENDARVIEW.html">
            
                    
                    实体日历视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.16" data-path="../VIEWS/DAREXPVIEW.html">
            
                <a href="../VIEWS/DAREXPVIEW.html">
            
                    
                    实体日历导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.17" data-path="../VIEWS/TREEVIEW.html">
            
                <a href="../VIEWS/TREEVIEW.html">
            
                    
                    实体树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.18" data-path="../VIEWS/TREEEXPVIEW.html">
            
                <a href="../VIEWS/TREEEXPVIEW.html">
            
                    
                    实体树导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.19" data-path="../VIEWS/TREEGRIDEXVIEW.html">
            
                <a href="../VIEWS/TREEGRIDEXVIEW.html">
            
                    
                    实体树表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.20" data-path="../VIEWS/INDEXVIEW.html">
            
                <a href="../VIEWS/INDEXVIEW.html">
            
                    
                    应用首页视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.21" data-path="../VIEWS/AppKanBanView.html">
            
                <a href="../VIEWS/AppKanBanView.html">
            
                    
                    应用看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.22" data-path="../VIEWS/ENTITYKANBANVIEW.html">
            
                <a href="../VIEWS/ENTITYKANBANVIEW.html">
            
                    
                    实体看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.23" data-path="../VIEWS/GANTTVIEW.html">
            
                <a href="../VIEWS/GANTTVIEW.html">
            
                    
                    实体甘特图视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.24" data-path="../VIEWS/ENTITYCHARTVIEW.html">
            
                <a href="../VIEWS/ENTITYCHARTVIEW.html">
            
                    
                    实体图表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.25" data-path="../VIEWS/ENTITYDATASELECTVIEW.html">
            
                <a href="../VIEWS/ENTITYDATASELECTVIEW.html">
            
                    
                    实体数据选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.26" data-path="../VIEWS/ENTITYSELECTGRIDVIEW.html">
            
                <a href="../VIEWS/ENTITYSELECTGRIDVIEW.html">
            
                    
                    实体选择表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.27" data-path="../VIEWS/ENTITYSELECTTREEVIEW.html">
            
                <a href="../VIEWS/ENTITYSELECTTREEVIEW.html">
            
                    
                    实体选择树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.28" data-path="../VIEWS/INDEXPICKUPDATAVIEW.html">
            
                <a href="../VIEWS/INDEXPICKUPDATAVIEW.html">
            
                    
                    实体索引关系选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.29" data-path="../VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                <a href="../VIEWS/ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                    
                    实体工作流动态导航表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.30" data-path="../VIEWS/ENTITYWORKFLOWEDITVIEW.html">
            
                <a href="../VIEWS/ENTITYWORKFLOWEDITVIEW.html">
            
                    
                    实体工作流动态编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.31" data-path="../VIEWS/LOGINVIEW.html">
            
                <a href="../VIEWS/LOGINVIEW.html">
            
                    
                    应用登录视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.32" data-path="../VIEWS/DATAUPLOADVIEW.html">
            
                <a href="../VIEWS/DATAUPLOADVIEW.html">
            
                    
                    应用数据导入视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.33" data-path="../VIEWS/REDIRECTVIEW.html">
            
                <a href="../VIEWS/REDIRECTVIEW.html">
            
                    
                    实体数据重定向视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.34" data-path="../VIEWS/CUSTOM.html">
            
                <a href="../VIEWS/CUSTOM.html">
            
                    
                    实体自定义视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.35" data-path="../VIEWS/WIZARDVIEW.html">
            
                <a href="../VIEWS/WIZARDVIEW.html">
            
                    
                    实体向导视图
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" >
            
                <span>
            
                    
                    部件
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="FORM.html">
            
                <a href="FORM.html">
            
                    
                    表单
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.3.2" data-path="GRID.html">
            
                <a href="GRID.html">
            
                    
                    表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="GRIDEXPBAR.html">
            
                <a href="GRIDEXPBAR.html">
            
                    
                    表格导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.4" data-path="SEARCHBAR.html">
            
                <a href="SEARCHBAR.html">
            
                    
                    搜索栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.5" data-path="SEARCHFORM.html">
            
                <a href="SEARCHFORM.html">
            
                    
                    搜索表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.6" data-path="DataKanBan.html">
            
                <a href="DataKanBan.html">
            
                    
                    数据看板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.7" data-path="PortalComponents.html">
            
                <a href="PortalComponents.html">
            
                    
                    门户部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.8" data-path="TABEXPPANEL.html">
            
                <a href="TABEXPPANEL.html">
            
                    
                    分页导航面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.9" data-path="TABVIEWPANEL.html">
            
                <a href="TABVIEWPANEL.html">
            
                    
                    分页视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.10" data-path="APPMENU.html">
            
                <a href="APPMENU.html">
            
                    
                    应用菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.11" data-path="LIST.html">
            
                <a href="LIST.html">
            
                    
                    列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.12" data-path="LISTEXPBAR.html">
            
                <a href="LISTEXPBAR.html">
            
                    
                    列表导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.13" data-path="PANEL.html">
            
                <a href="PANEL.html">
            
                    
                    面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.14" data-path="DATAVIEWCTRL.html">
            
                <a href="DATAVIEWCTRL.html">
            
                    
                    数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.15" data-path="DATAVIEWEXPBAR.html">
            
                <a href="DATAVIEWEXPBAR.html">
            
                    
                    卡片视图导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.16" data-path="DataRelationPage.html">
            
                <a href="DataRelationPage.html">
            
                    
                    数据关系分页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.17" data-path="DATARELATIONFIELD.html">
            
                <a href="DATARELATIONFIELD.html">
            
                    
                    数据关系栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.18" data-path="CALENDAR.html">
            
                <a href="CALENDAR.html">
            
                    
                    日历部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.19" data-path="CALENDARTIMELINE.html">
            
                <a href="CALENDARTIMELINE.html">
            
                    
                    日历部件(时间轴)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.20" data-path="CALENDAREXPBAR.html">
            
                <a href="CALENDAREXPBAR.html">
            
                    
                    日历导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.21" data-path="TREEEXPBAR.html">
            
                <a href="TREEEXPBAR.html">
            
                    
                    树导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.22" data-path="TREEVIEWUNIT.html">
            
                <a href="TREEVIEWUNIT.html">
            
                    
                    树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.23" data-path="TREEGRID.html">
            
                <a href="TREEGRID.html">
            
                    
                    树表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.24" data-path="MULTIEDITVIEWPANEL.html">
            
                <a href="MULTIEDITVIEWPANEL.html">
            
                    
                    多编辑视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.25" data-path="KANBANVIEWUNIT.html">
            
                <a href="KANBANVIEWUNIT.html">
            
                    
                    看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.26" data-path="GANTT.html">
            
                <a href="GANTT.html">
            
                    
                    甘特图部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.27" data-path="DATACHART.html">
            
                <a href="DATACHART.html">
            
                    
                    数据图表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.28" data-path="SELECTVIEWPANEL.html">
            
                <a href="SELECTVIEWPANEL.html">
            
                    
                    选择视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.29" data-path="WIZARDPANEL.html">
            
                <a href="WIZARDPANEL.html">
            
                    
                    向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.30" data-path="STATEWIZARDPANEL.html">
            
                <a href="STATEWIZARDPANEL.html">
            
                    
                    状态向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.31" data-path="CONTEXTMENU.html">
            
                <a href="CONTEXTMENU.html">
            
                    
                    上下文菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.32" data-path="TOOLBAR.html">
            
                <a href="TOOLBAR.html">
            
                    
                    工具栏
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" >
            
                <span>
            
                    
                    编辑器
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../EDITORS/BASIC.html">
            
                <a href="../EDITORS/BASIC.html">
            
                    
                    基础类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../EDITORS/SHOW.html">
            
                <a href="../EDITORS/SHOW.html">
            
                    
                    展示类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="../EDITORS/SELECT.html">
            
                <a href="../EDITORS/SELECT.html">
            
                    
                    选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.4" data-path="../EDITORS/TIME.html">
            
                <a href="../EDITORS/TIME.html">
            
                    
                    时间类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.5" data-path="../EDITORS/FILEUPLOADlIST.html">
            
                <a href="../EDITORS/FILEUPLOADlIST.html">
            
                    
                    文件上传类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6" data-path="../EDITORS/DATASELECT.html">
            
                <a href="../EDITORS/DATASELECT.html">
            
                    
                    数据选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.7" data-path="../EDITORS/AUTOCOMPLETELIST.html">
            
                <a href="../EDITORS/AUTOCOMPLETELIST.html">
            
                    
                    自动填充类
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" >
            
                <span>
            
                    
                    逻辑
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="../LOGIC/APPFUNC.html">
            
                <a href="../LOGIC/APPFUNC.html">
            
                    
                    应用功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="../LOGIC/ACTION.html">
            
                <a href="../LOGIC/ACTION.html">
            
                    
                    界面行为
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.3" data-path="../LOGIC/VIEWLOGIC.html">
            
                <a href="../LOGIC/VIEWLOGIC.html">
            
                    
                    视图逻辑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" >
            
                <span>
            
                    
                    UI服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.6.1" data-path="../UISERVICE/CTRLSERVICE.html">
            
                <a href="../UISERVICE/CTRLSERVICE.html">
            
                    
                    部件服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.2" data-path="../UISERVICE/UISERVICE.html">
            
                <a href="../UISERVICE/UISERVICE.html">
            
                    
                    界面服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.3" data-path="../UISERVICE/AUTHSERVICE.html">
            
                <a href="../UISERVICE/AUTHSERVICE.html">
            
                    
                    权限服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.4" data-path="../UISERVICE/CODELISTSERVICE.html">
            
                <a href="../UISERVICE/CODELISTSERVICE.html">
            
                    
                    代码表服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.5" data-path="../UISERVICE/COUNTERSERVICE.html">
            
                <a href="../UISERVICE/COUNTERSERVICE.html">
            
                    
                    计数器服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.6" data-path="../UISERVICE/APPUTILSERVICE.html">
            
                <a href="../UISERVICE/APPUTILSERVICE.html">
            
                    
                    应用功能服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.7" data-path="../UISERVICE/VIEWMESSAGESERVICE.html">
            
                <a href="../UISERVICE/VIEWMESSAGESERVICE.html">
            
                    
                    视图消息服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.7" >
            
                <span>
            
                    
                    数据服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="../DATASERVICE/DATASERVICE.html">
            
                <a href="../DATASERVICE/DATASERVICE.html">
            
                    
                    数据服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../APPS/PROBLEM.html">
            
                <a href="../APPS/PROBLEM.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >表格</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x8868;&#x683C;"><a href="https://modelapi.ibizlab.cn/#/net/ibizsys/model/control/grid/IPSDEGrid" target="_blank">&#x8868;&#x683C;</a></h2>
<p>&#x7528;&#x4E8E;&#x5C55;&#x793A;&#x591A;&#x6761;&#x7ED3;&#x6784;&#x7C7B;&#x4F3C;&#x7684;&#x6570;&#x636E;&#xFF0C;&#x53EF;&#x5BF9;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x6392;&#x5E8F;&#x3001;&#x7B5B;&#x9009;&#x3001;&#x5BF9;&#x6BD4;&#x6216;&#x5176;&#x4ED6;&#x81EA;&#x5B9A;&#x4E49;&#x64CD;&#x4F5C;&#x3002;</p>
<h2 id="&#x5448;&#x73B0;&#x6548;&#x679C;">&#x5448;&#x73B0;&#x6548;&#x679C;</h2>
<div style="border: 1px solid #e8e8e8;"><img src="images/grid.png" style="width:100%;"></div>

<h2 id="&#x57FA;&#x7840;&#x7528;&#x6CD5;"><a href="http://demo.ibizlab.cn/ibizr7pfstdtempl/ibizvuer7/tree/master/@CONTROL/%E8%A1%A8%E6%A0%BC" target="_blank">&#x57FA;&#x7840;&#x7528;&#x6CD5;</a></h2>
<h3 id="ui&#x7ED3;&#x6784;">UI&#x7ED3;&#x6784;</h3>
<table>
<thead>
<tr>
<th>&#x7F16;&#x53F7;</th>
<th>&#x529F;&#x80FD;</th>
<th>&#x4F7F;&#x7528;&#x6A21;&#x578B;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>C020U0001</td>
<td>&#x652F;&#x6301;&#x81EA;&#x5B9A;&#x4E49;&#x63D2;&#x4EF6;</td>
<td>getRender()</td>
<td>&#x8BE6;&#x60C5;&#x53C2;&#x89C1;<a href="../APPS/EXTENDED.html">&#x5FEB;&#x901F;&#x4ECB;&#x5165;</a>&#x7BC7;</td>
</tr>
<tr>
<td>C020U0002</td>
<td>&#x652F;&#x6301;&#x90E8;&#x4EF6;&#x6837;&#x5F0F;</td>
<td>getPSSysCss()</td>
<td>&#x7ED1;&#x5B9A;&#x8868;&#x683C;&#x6837;&#x5F0F;&#x7C7B;</td>
</tr>
<tr>
<td>C020U0003</td>
<td>&#x652F;&#x6301;&#x8868;&#x683C;&#x805A;&#x5408;</td>
<td>getAggMode()</td>
<td>&#x8BE6;&#x60C5;&#x53C2;&#x89C1;&#x884C;&#x4E3A;&#x903B;&#x8F91;&#x8868;&#x683C;&#x805A;&#x5408;</td>
</tr>
<tr>
<td>C020U0004</td>
<td>&#x652F;&#x6301;&#x8868;&#x683C;&#x6392;&#x5E8F;</td>
<td>isNoSort()&#x3001;getMinorSortPSDEF()&#x3001;getMinorSortDir()</td>
<td>&#x8868;&#x683C;&#x6392;&#x5E8F;</td>
</tr>
<tr>
<td>C020U0005</td>
<td>&#x652F;&#x6301;&#x8868;&#x683C;&#x5206;&#x7EC4;</td>
<td>isEnableGroup()&#x3001;getGroupPSDEField()&#x3001;getGroupMode()</td>
<td>&#x8BE6;&#x60C5;&#x53C2;&#x89C1;&#x884C;&#x4E3A;&#x903B;&#x8F91;&#x8868;&#x683C;&#x5206;&#x7EC4;</td>
</tr>
<tr>
<td>C020U0006</td>
<td>&#x652F;&#x6301;&#x5206;&#x9875;&#x680F;</td>
<td>isEnablePagingBar()</td>
<td>&#x7528;&#x4E8E;&#x8868;&#x683C;&#x6837;&#x5F0F;&#x8C03;&#x6574;&#x548C;&#x5206;&#x9875;&#x680F;&#x662F;&#x5426;&#x663E;&#x793A;</td>
</tr>
<tr>
<td>C020U0007</td>
<td>&#x652F;&#x6301;&#x5FEB;&#x901F;&#x64CD;&#x4F5C;&#x5DE5;&#x5177;&#x680F;</td>
<td>getQuickPSDEToolbar()</td>
<td>&#x7528;&#x4E8E;&#x8868;&#x683C;&#x65E0;&#x6570;&#x636E;&#x65F6;&#x8BBE;&#x7F6E;&#x754C;&#x9762;&#x884C;&#x4E3A;</td>
</tr>
<tr>
<td>C020U0008</td>
<td>&#x652F;&#x6301;&#x6279;&#x91CF;&#x64CD;&#x4F5C;&#x5DE5;&#x5177;&#x680F;</td>
<td>getBatchPSDEToolbar()</td>
<td>&#x7528;&#x4E8E;&#x8868;&#x683C;&#x5206;&#x9875;&#x680F;&#x8BBE;&#x7F6E;&#x754C;&#x9762;&#x884C;&#x4E3A;</td>
</tr>
<tr>
<td>C020U0009</td>
<td>&#x8868;&#x683C;&#x5206;&#x9875;&#x5927;&#x5C0F;</td>
<td>getPagingSize()</td>
<td>&#x8868;&#x683C;&#x52A0;&#x8F7D;&#x5206;&#x9875;&#x5927;&#x5C0F;</td>
</tr>
<tr>
<td>C020U0010</td>
<td>&#x9690;&#x85CF;&#x8868;&#x683C;&#x5934;&#x90E8;</td>
<td>isHideHeader()</td>
<td>&#x662F;&#x5426;&#x9690;&#x85CF;&#x8868;&#x683C;&#x6807;&#x9898;&#x884C;</td>
</tr>
<tr>
<td>C020U0011</td>
<td>&#x8868;&#x683C;&#x884C;&#x6570;&#x636E;&#x9ED8;&#x8BA4;&#x6FC0;&#x6D3B;&#x6A21;&#x5F0F;</td>
<td>getGridRowActiveMode()</td>
<td>&#x6570;&#x636E;&#x7531;&#x89C6;&#x56FE;&#x4F20;&#x9012;&#xFF0C;0:&#x4E0D;&#x6FC0;&#x6D3B;,1:&#x5355;&#x51FB;&#x6FC0;&#x6D3B;,2:&#x53CC;&#x51FB;&#x6FC0;&#x6D3B;</td>
</tr>
<tr>
<td>C020U0012</td>
<td>&#x8868;&#x683C;&#x884C;&#x7F16;&#x8F91;</td>
<td>isEnableRowEdit()</td>
<td>&#x8BE6;&#x60C5;&#x53C2;&#x89C1;&#x884C;&#x4E3A;&#x903B;&#x8F91;&#x8868;&#x683C;&#x884C;&#x7F16;&#x8F91;</td>
</tr>
<tr>
<td>C020U0013</td>
<td>&#x8868;&#x683C;&#x9879;&#x66F4;&#x65B0;</td>
<td>getPSDEGridEditItems()</td>
<td>&#x8BE6;&#x60C5;&#x53C2;&#x89C1;&#x884C;&#x4E3A;&#x903B;&#x8F91;&#x8868;&#x683C;&#x9879;&#x66F4;&#x65B0;</td>
</tr>
<tr>
<td>C020U0014</td>
<td>&#x8868;&#x683C;&#x503C;&#x89C4;&#x5219;</td>
<td>getPSDEGridEditItemVRs()</td>
<td>&#x8BE6;&#x60C5;&#x53C2;&#x89C1;&#x884C;&#x4E3A;&#x903B;&#x8F91;&#x8868;&#x683C;&#x503C;&#x89C4;&#x5219;</td>
</tr>
<tr>
<td>C020U0015</td>
<td>&#x6570;&#x636E;&#x5BFC;&#x5165;</td>
<td>getPSDEDataImport()</td>
<td>&#x652F;&#x6301;excel&#x5BFC;&#x5165;&#xFF0C;&#x8BE6;&#x60C5;&#x53C2;&#x89C1;&#x884C;&#x4E3A;&#x903B;&#x8F91;&#x6570;&#x636E;&#x5BFC;&#x5165;&#x5BFC;&#x51FA;</td>
</tr>
<tr>
<td>C020U0016</td>
<td>&#x6570;&#x636E;&#x5BFC;&#x51FA;</td>
<td>getPSDEDataExport()</td>
<td>&#x652F;&#x6301;excel&#x5BFC;&#x51FA;&#xFF0C;&#x8BE6;&#x60C5;&#x53C2;&#x89C1;&#x884C;&#x4E3A;&#x903B;&#x8F91;&#x6570;&#x636E;&#x5BFC;&#x5165;&#x5BFC;&#x51FA;</td>
</tr>
<tr>
<td>C020U0017</td>
<td>&#x65B0;&#x5EFA;&#x9ED8;&#x8BA4;&#x503C;</td>
<td>getCreateDV()&#x3001;getCreateDVT()</td>
<td>&#x8BE6;&#x60C5;&#x53C2;&#x89C1;&#x884C;&#x4E3A;&#x903B;&#x8F91;&#x65B0;&#x5EFA;&#x9ED8;&#x8BA4;&#x503C;</td>
</tr>
<tr>
<td>C020U0018</td>
<td>&#x66F4;&#x65B0;&#x9ED8;&#x8BA4;&#x503C;</td>
<td>getUpdateDV()&#x3001;getUpdateDVT()</td>
<td>&#x8BE6;&#x60C5;&#x53C2;&#x89C1;&#x884C;&#x4E3A;&#x903B;&#x8F91;&#x66F4;&#x65B0;&#x9ED8;&#x8BA4;&#x503C;</td>
</tr>
<tr>
<td>C020U0019</td>
<td>&#x81EA;&#x5B9A;&#x4E49;&#x6807;&#x9898;</td>
<td>getCaption()</td>
<td>&#x8BBE;&#x7F6E;&#x8868;&#x683C;&#x5934;&#x90E8;&#x6807;&#x9898;</td>
</tr>
<tr>
<td>C020U0020</td>
<td>&#x6807;&#x9898;&#x56FD;&#x9645;&#x5316;</td>
<td>getCapPSLanguageRes()</td>
<td>&#x8BE6;&#x60C5;&#x53C2;&#x89C1;<a href="http://localhost:4000/APPS/LOCALE.html" target="_blank">&#x56FD;&#x9645;&#x5316;</a>&#x7BC7;</td>
</tr>
<tr>
<td>C020U0021</td>
<td>&#x6807;&#x9898;&#x56FE;&#x6807;</td>
<td>getPSSysImage()</td>
<td>&#x6807;&#x9898;&#x524D;&#x8BBE;&#x7F6E;&#x6807;&#x9898;&#x56FE;&#x6807;</td>
</tr>
<tr>
<td>C020U0022</td>
<td>&#x6807;&#x9898;&#x6837;&#x5F0F;&#x8868;</td>
<td>getHeaderPSSysCss()</td>
<td>&#x6807;&#x9898;&#x7ED1;&#x5B9A;&#x6837;&#x5F0F;&#x7C7B;</td>
</tr>
<tr>
<td>C020U0023</td>
<td>&#x5217;&#x9ED8;&#x8BA4;&#x9690;&#x85CF;</td>
<td>isHideDefault()</td>
<td>&#x652F;&#x6301;&#x8868;&#x683C;&#x5217;&#x9ED8;&#x8BA4;&#x9690;&#x85CF;</td>
</tr>
<tr>
<td>C020U0024</td>
<td>&#x64CD;&#x4F5C;&#x5217;&#x9879;&#x81EA;&#x5B9A;&#x4E49;&#x6807;&#x9898;&#x3001;&#x8BBE;&#x7F6E;&#x56FE;&#x6807;</td>
<td>getPSDEUIActionGroup()&#x3001;getIconCls()</td>
<td>&#x652F;&#x6301;&#x64CD;&#x4F5C;&#x5217;&#x6309;&#x94AE;&#x9879;&#x81EA;&#x5B9A;&#x4E49;&#x6807;&#x9898;&#x3001;&#x8BBE;&#x7F6E;&#x56FE;&#x6807;</td>
</tr>
<tr>
<td>C020U0025</td>
<td>&#x8868;&#x683C;&#x5217;&#x63D2;&#x4EF6;</td>
<td>getRender()</td>
<td>&#x8BE6;&#x60C5;&#x53C2;&#x89C1;<a href="../APPS/EXTENDED.html">&#x5FEB;&#x901F;&#x4ECB;&#x5165;</a>&#x7BC7;</td>
</tr>
<tr>
<td>C020U0026</td>
<td>&#x652F;&#x6301;&#x503C;&#x683C;&#x5F0F;</td>
<td>getValueFormat()</td>
<td>&#x652F;&#x6301;&#x6570;&#x636E;&#x683C;&#x5F0F;&#x5316;</td>
</tr>
<tr>
<td>C020U0027</td>
<td>&#x652F;&#x6301;&#x94FE;&#x63A5;&#x89C6;&#x56FE;</td>
<td>isEnableLinkView()</td>
<td>&#x53EF;&#x5FEB;&#x901F;&#x8DF3;&#x8F6C;&#x94FE;&#x63A5;&#x89C6;&#x56FE;</td>
</tr>
<tr>
<td>C020U0028</td>
<td>&#x4EE3;&#x7801;&#x8868;&#x8F6C;&#x6362;</td>
<td>getPSCodeList()</td>
<td>&#x652F;&#x6301;&#x4EE3;&#x7801;&#x8868;&#x7FFB;&#x8BD1;</td>
</tr>
</tbody>
</table>
<h3 id="&#x884C;&#x4E3A;&#x903B;&#x8F91;">&#x884C;&#x4E3A;&#x903B;&#x8F91;</h3>
<blockquote style="border-color: blue;"><p>&#x8868;&#x683C;&#x5185;&#x7F6E;&#x529F;&#x80FD;</p></blockquote>

<table>
<thead>
<tr>
<th>&#x7F16;&#x53F7;</th>
<th>&#x529F;&#x80FD;</th>
<th>&#x5173;&#x952E;&#x8BCD;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>C020L0001</td>
<td>&#x8868;&#x683C;&#x52A0;&#x8F7D;&#x6570;&#x636E;</td>
<td>load</td>
<td>&#x5148;&#x51C6;&#x5907;&#x67E5;&#x8BE2;&#x53C2;&#x6570;(&#x5305;&#x542B;&#x89C6;&#x56FE;&#x641C;&#x7D20;&#x533A;&#x67E5;&#x8BE2;&#x6570;&#x636E;&#x548C;&#x8868;&#x683C;&#x6392;&#x5E8F;&#x3001;&#x5206;&#x9875;&#x7B49;&#x6570;&#x636E;)&#x3001;&#x6700;&#x540E;&#x6267;&#x884C;&#x67E5;&#x8BE2;&#x903B;&#x8F91;&#x3001;&#x63A5;&#x53E3;&#x6570;&#x636E;&#x56DE;&#x6765;&#x6267;&#x884C;&#x8868;&#x683C;UI&#x903B;&#x8F91;</td>
</tr>
<tr>
<td>C020L0002</td>
<td>&#x8868;&#x683C;&#x5220;&#x9664;&#x6570;&#x636E;</td>
<td>remove</td>
<td>&#x6839;&#x636E;&#x5220;&#x9664;&#x6570;&#x636E;&#x91CF;&#xFF0C;&#x786E;&#x8BA4;&#x8C03;&#x7528;&#x7684;&#x662F;&#x6279;&#x5220;&#x9664;&#x8FD8;&#x662F;&#x666E;&#x901A;&#x5220;&#x9664;&#x884C;&#x4E3A;&#xFF0C;&#x7136;&#x540E;&#x6267;&#x884C;&#x540E;&#x7EED;&#x5220;&#x9664;&#x884C;&#x4E3A;</td>
</tr>
<tr>
<td>C020L0003</td>
<td>&#x8868;&#x683C;&#x4FEE;&#x6539;&#x6570;&#x636E;</td>
<td>save</td>
<td>&#x6839;&#x636E;UI&#x6570;&#x636E;&#x884C;&#x72B6;&#x6001;&#x503C;(rowDataState),&#x82E5;&#x4E3A;create&#xFF0C;&#x6267;&#x884C;&#x65B0;&#x5EFA;&#x64CD;&#x4F5C;</td>
</tr>
<tr>
<td>C020L0004</td>
<td>&#x8868;&#x683C;&#x65B0;&#x589E;&#x6570;&#x636E;</td>
<td>save</td>
<td>&#x6839;&#x636E;UI&#x6570;&#x636E;&#x884C;&#x72B6;&#x6001;&#x503C;(rowDataState),&#x82E5;&#x4E3A;update&#xFF0C;&#x6267;&#x884C;&#x66F4;&#x65B0;&#x64CD;&#x4F5C;</td>
</tr>
<tr>
<td>C020L0005</td>
<td>&#x6279;&#x91CF;&#x63D0;&#x4EA4;&#x6570;&#x636E;</td>
<td>submitbatch</td>
<td>&#x7531;&#x89C6;&#x56FE;&#x901A;&#x77E5;&#x6267;&#x884C;&#x6279;&#x91CF;&#x63D0;&#x4EA4;&#x6570;&#x636E;&#x884C;&#x4E3A;</td>
</tr>
</tbody>
</table>
<blockquote style="border-color: blue;"><p>&#x8868;&#x683C;&#x805A;&#x5408;</p></blockquote>

<p>&#x8868;&#x683C;&#x805A;&#x5408;&#x7684;&#x5904;&#x7406;&#x4E3B;&#x8981;&#x5206;&#x4E3A;&#x65E0;&#x805A;&#x5408;&#x3001;&#x5F53;&#x524D;&#x9875;&#x672C;&#x5730;&#x805A;&#x5408;&#x3001;&#x5168;&#x90E8;&#x8FDC;&#x7A0B;&#x4E09;&#x79CD;&#x805A;&#x5408;&#x65B9;&#x5F0F;&#x3002;&#x5176;&#x4E2D;&#xFF0C;&#x65E0;&#x805A;&#x5408;&#x65B9;&#x5F0F;&#x6267;&#x884C;&#x8868;&#x683C;&#x9ED8;&#x8BA4;&#x5904;&#x7406;&#x903B;&#x8F91;&#xFF0C;&#x4E0D;&#x505A;&#x4EFB;&#x4F55;&#x5904;&#x7406;&#xFF1B;&#x5F53;&#x524D;&#x9875;&#x672C;&#x5730;&#x805A;&#x5408;&#x65B9;&#x5F0F;&#xFF0C;&#x8868;&#x683C;&#x52A0;&#x8F7D;&#x6570;&#x636E;&#x7ED3;&#x675F;&#x540E;&#x4F1A;&#x6267;&#x884C;&#x8868;&#x683C;&#x81EA;&#x5B9A;&#x4E49;&#x805A;&#x5408;&#x903B;&#x8F91;(getSummaries&#x51FD;&#x6570;)&#x8BA1;&#x7B97;&#x7ED3;&#x679C;&#x5E76;&#x8FDB;&#x884C;&#x7ED8;&#x5236;&#xFF1B;&#x5168;&#x90E8;&#x8FDC;&#x7A0B;&#x65B9;&#x5F0F;&#xFF0C;&#x8868;&#x683C;&#x52A0;&#x8F7D;&#x6570;&#x636E;&#x7ED3;&#x675F;&#x540E;&#xFF0C;&#x4F1A;&#x6267;&#x884C;&#x8C03;&#x7528;&#x8FDC;&#x7A0B;&#x63A5;&#x53E3;&#x83B7;&#x53D6;&#x805A;&#x5408;&#x884C;&#x6570;&#x636E;&#xFF0C;&#x7B49;&#x5F85;&#x8FDC;&#x7A0B;&#x63A5;&#x53E3;&#x6570;&#x636E;&#x56DE;&#x6765;&#x4E4B;&#x540E;&#xFF0C;&#x8868;&#x683C;&#x624D;&#x4F1A;&#x5F00;&#x59CB;&#x6E32;&#x67D3;&#xFF08;&#x5176;&#x6E32;&#x67D3;&#x65F6;&#x673A;&#x548C;&#x5F53;&#x524D;&#x9875;&#x672C;&#x5730;&#x805A;&#x5408;&#x65B9;&#x5F0F;&#x4E0D;&#x4E00;&#x81F4;,&#x901A;&#x8FC7;&#x72B6;&#x6001;&#x53D8;&#x91CF;&#x6765;&#x63A7;&#xFF09;&#xFF0C;&#x6700;&#x540E;&#x6267;&#x884C;&#x8868;&#x683C;&#x81EA;&#x5B9A;&#x4E49;&#x805A;&#x5408;&#x903B;&#x8F91;(getSummaries&#x51FD;&#x6570;)&#x5408;&#x5E76;&#x7ED3;&#x679C;&#x5E76;&#x8FDB;&#x884C;&#x7ED8;&#x5236;&#x3002;&#x5176;&#x6838;&#x5FC3;&#x4EE3;&#x7801;&#x7247;&#x6BB5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript">/**
* &#x5408;&#x8BA1;&#x884C;&#x7ED8;&#x5236;
*
* @param {any} param
* @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
*/
public getSummaries(param:any){
&lt;#if ctrl.getAggMode() == &quot;PAGE&quot;&gt;
    const { columns, data } = param;
    const sums:Array&lt;any&gt; = [];
    columns.forEach((column:any, index:number) =&gt; {
        if (index === 0) {
        sums[index] = (this.$t(&apos;app.gridpage.sum&apos;) as string);
        return;
        }
        if(index === (columns.length - 1)){
        sums[index] = &apos;&apos;;
        return;
        }
        const values = data.map((item:any) =&gt; Number(item[column.property]));
        if (!values.every((value:any) =&gt; isNaN(value))) {
        &lt;#if ctrl.getPSDEGridColumns()??&gt;
        &lt;#list ctrl.getPSDEGridColumns() as singleColumn&gt;
        &lt;#if singleColumn.getAggMode() == &quot;SUM&quot;&gt;
            if(Object.is(column.property,&apos;${singleColumn.getCodeName()?lower_case}&apos;)){
                let tempData = values.reduce((prev:any, curr:any) =&gt; {
                    const value = Number(curr);
                    if (!isNaN(value)) {
                        return prev + curr;
                    } else {
                        return prev;
                    }
                }, 0);
                sums[index] = tempData.toFixed(3);
            }
        &lt;#elseif singleColumn.getAggMode() == &quot;AVG&quot;&gt;
            if(Object.is(column.property,&apos;${singleColumn.getCodeName()?lower_case}&apos;)){
                let tempData = values.reduce((prev:any, curr:any) =&gt; {
                    const value = Number(curr);
                    if (!isNaN(value)) {
                        return prev + curr;
                    } else {
                        return prev;
                    }
                }, 0);
                sums[index] = (tempData/data.length).toFixed(2);
            }
        &lt;#elseif singleColumn.getAggMode() == &quot;MAX&quot;&gt;
            if(Object.is(column.property,&apos;${singleColumn.getCodeName()?lower_case}&apos;)){
                let tempData:any;
                values.forEach((item:any) =&gt;{
                const value = Number(item);
                    if (!isNaN(value)) {
                        if(!tempData){
                            tempData = value;
                        }
                        if(value &gt; tempData){
                            tempData = value;
                        }
                    }
                });
                sums[index] = tempData;
            }
        &lt;#elseif singleColumn.getAggMode() == &quot;MIN&quot;&gt;
            if(Object.is(column.property,&apos;${singleColumn.getCodeName()?lower_case}&apos;)){
                let tempData:any;
                values.forEach((item:any) =&gt;{
                const value = Number(item);
                    if (!isNaN(value)) {
                        if(!tempData){
                            tempData = value;
                        }
                        if(value &lt; tempData){
                            tempData = value;
                        }
                    }
                });
                sums[index] = tempData;
            }
        &lt;/#if&gt;
        &lt;/#list&gt;
        &lt;/#if&gt;
        } else {
        sums[index] = &apos;&apos;;
        }
    });
    return sums;
&lt;#elseif ctrl.getAggMode() == &quot;ALL&quot;&gt;
    const { columns } = param;
    const sums:Array&lt;any&gt; = [];
    columns.forEach((column:any, index:number) =&gt; {
    if (index === 0) {
        sums[index] = (this.$t(&apos;app.gridpage.sum&apos;) as string);
        return;
    }else if(index === (columns.length - 1)){
        sums[index] = &apos;&apos;;
        return;
    }else{
    &lt;#if ctrl.getPSDEGridColumns()??&gt;
        sums[index] = &apos;&apos;;
    &lt;#list ctrl.getPSDEGridColumns() as singleColumn&gt;
        &lt;#if singleColumn.getAggMode() != &quot;NONE&quot;&gt;
        if(Object.is(column.property,&apos;${singleColumn.getCodeName()?lower_case}&apos;)){
            const value = Number(this.remoteData.${singleColumn.getCodeName()?lower_case});
            if (!isNaN(value)) {
        &lt;#if singleColumn.getAggMode() == &quot;SUM&quot;&gt;
                sums[index] =  value;
        &lt;#elseif singleColumn.getAggMode() == &quot;AVG&quot;&gt;
                sums[index] =  value;
        &lt;#elseif singleColumn.getAggMode() == &quot;MAX&quot;&gt;
                sums[index] =  value;
        &lt;#elseif singleColumn.getAggMode() == &quot;MIN&quot;&gt;
                sums[index] =  value;
        &lt;/#if&gt;
            }
        }
        &lt;/#if&gt;
    &lt;/#list&gt;
    &lt;/#if&gt;
    }
    });
    return sums; 
&lt;/#if&gt;
    }
</code></pre>
<blockquote style="border-color: blue;"><p>&#x8868;&#x683C;&#x5206;&#x7EC4;</p></blockquote>

<p>&#x8868;&#x683C;&#x5206;&#x7EC4;&#x5206;&#x4E3A;&#x65E0;&#x5206;&#x7EC4;&#x3001;&#x81EA;&#x52A8;&#x5206;&#x7EC4;&#x548C;&#x5206;&#x7EC4;&#x4EE3;&#x7801;&#x8868;&#x4E09;&#x79CD;&#x60C5;&#x51B5;&#x3002;&#x76EE;&#x524D;&#xFF0C;&#x8868;&#x683C;&#x652F;&#x6301;&#x65E0;&#x5206;&#x7EC4;&#x548C;&#x81EA;&#x52A8;&#x5206;&#x7EC4;2&#x79CD;&#x60C5;&#x51B5;&#x3002;&#x5176;&#x4E2D;&#xFF0C;&#x65E0;&#x5206;&#x7EC4;&#x65B9;&#x5F0F;&#x6267;&#x884C;&#x8868;&#x683C;&#x9ED8;&#x8BA4;&#x5904;&#x7406;&#x903B;&#x8F91;&#xFF0C;&#x4E0D;&#x505A;&#x4EFB;&#x4F55;&#x5904;&#x7406;&#xFF1B;&#x81EA;&#x52A8;&#x5206;&#x7EC4;&#x65B9;&#x5F0F;&#xFF0C;&#x5728;&#x8868;&#x683C;&#x52A0;&#x8F7D;&#x6570;&#x636E;&#x5B8C;&#x6210;&#x65F6;&#xFF0C;&#x4F1A;&#x5BF9;&#x52A0;&#x8F7D;&#x7684;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x5206;&#x7EC4;&#x5904;&#x7406;(&#x57FA;&#x4E8E;&#x5206;&#x7EC4;&#x5C5E;&#x6027;&#x5206;&#x7EC4;)&#xFF0C;&#x5B8C;&#x6210;&#x6811;&#x72B6;&#x7ED3;&#x6784;&#x7684;&#x6570;&#x636E;&#x7684;&#x6574;&#x7406;&#x540E;&#xFF0C;&#x7ED1;&#x5B9A;UI&#xFF0C;&#x5BF9;&#x5206;&#x7EC4;&#x884C;&#x7684;&#x5355;&#x5143;&#x683C;&#x8FDB;&#x884C;&#x5408;&#x5E76;&#xFF0C;&#x5B9E;&#x73B0;&#x8868;&#x683C;&#x5206;&#x7EC4;&#x3002;&#x5176;&#x6838;&#x5FC3;&#x4EE3;&#x7801;&#x7247;&#x6BB5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript">/**
* &#x7ED8;&#x5236;&#x5206;&#x7EC4;
* 
* @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
*/
public drawGroup(){
    if(!this.isEnableGroup) return;
    // &#x5206;&#x7EC4;
    let allGroup: Array&lt;any&gt; = [];
    this.items.forEach((item: any)=&gt;{
        if(item.hasOwnProperty(this.groupAppField)){
            allGroup.push(item[this.groupAppField]);
        }
    });
    let groupTree:Array&lt;any&gt; = [];
    allGroup = [...new Set(allGroup)];
    if(allGroup.length == 0){
        console.warn(&quot;&#x5206;&#x7EC4;&#x6570;&#x636E;&#x65E0;&#x6548;&quot;);
    }
    // &#x7EC4;&#x88C5;&#x6570;&#x636E;
    allGroup.forEach((group: any, groupIndex: number)=&gt;{
        let children:Array&lt;any&gt; = [];
        this.items.forEach((item: any,itemIndex: number)=&gt;{
            if(Object.is(group,item[this.groupAppField])){
                item.groupById = Number((groupIndex+1) * 10 + (itemIndex+1) * 1);
                item.group = &apos;&apos;;
                children.push(item);
            }
        });
        group = group ? group : this.$t(&apos;app.gridpage.other&apos;);
        const tree: any ={
            groupById: Number((groupIndex+1)*10),
            group: group,
            &lt;#if ctrl.getPSDEGridColumns()??&gt;
            &lt;#list ctrl.getPSDEGridColumns() as singleColumn&gt;
            &lt;#if singleColumn.getColumnType()?? &amp;&amp; singleColumn.getColumnType() == &quot;UAGRIDCOLUMN&quot;&gt;
            &lt;#if singleColumn.getPSDEUIActionGroup()?? &amp;&amp; singleColumn.getPSDEUIActionGroup().getPSUIActions()??&gt;
            &lt;#list singleColumn.getPSDEUIActionGroup().getPSUIActions() as singleUIAction&gt;
            ${singleUIAction.getCodeName()}:{
                visabled: false
            },
            &lt;/#list&gt;
            &lt;/#if&gt;
            &lt;#else&gt;
            ${singleColumn.getCodeName()}:&apos;&apos;,
            &lt;/#if&gt;
            &lt;/#list&gt;
            &lt;/#if&gt;
            children: children,
        }
        groupTree.push(tree);
    });
    this.items = groupTree;
    if(this.actualIsOpenEdit) {
        for(let i = 0; i &lt; this.items.length; i++) {
            this.gridItemsModel.push(this.getGridRowModel());
        }
    }
}

/**
* &#x5408;&#x5E76;&#x5206;&#x7EC4;&#x884C;
* 
* @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
*/
public arraySpanMethod({row, column, rowIndex, columnIndex} : any) {
    let allColumns:Array&lt;any&gt; = [&lt;#if ctrl.getPSDEGridColumns()??&gt;&lt;#list ctrl.getPSDEGridColumns() as singleColumn&gt;&apos;${singleColumn.getCodeName()}&apos;&lt;#if singleColumn_has_next&gt;,&lt;/#if&gt;&lt;/#list&gt;&lt;/#if&gt;];
    if(row &amp;&amp; row.children &amp;&amp; row.children.length&gt;0) {
        if(columnIndex == (this.isSingleSelect ? 0:1)) {
            return [1, allColumns.length+1];
        } else if(columnIndex &gt; (this.isSingleSelect ? 0:1)) {
            return [0,0];
        }
    }
}
</code></pre>
<p><strong><em>&#x6CE8;:&#x56E0;&#x4E3A;&#x8868;&#x683C;&#x90E8;&#x4EF6;&#x670D;&#x52A1;&#x4F1A;&#x5BF9;&#x540E;&#x53F0;&#x56DE;&#x6765;&#x6570;&#x636E;&#x505A;&#x6570;&#x636E;&#x8F6C;&#x5316;&#xFF0C;&#x8F6C;&#x5316;&#x9700;&#x8981;&#x4F9D;&#x8D56;&#x8868;&#x683C;&#x6570;&#x636E;&#x9879;&#x6A21;&#x578B;&#xFF0C;&#x56E0;&#x6B64;&#x9700;&#x8981;&#x5C06;&#x5206;&#x7EC4;&#x5C5E;&#x6027;&#x653E;&#x7F6E;&#x5230;&#x8868;&#x683C;&#x5217;&#x4E2D;&#xFF08;&#x5982;&#x65E0;&#x5C55;&#x793A;&#x7684;&#x4E1A;&#x52A1;&#x9700;&#x6C42;&#xFF0C;&#x53EF;&#x5C06;&#x5176;&#x8BBE;&#x7F6E;&#x4E3A;&#x9ED8;&#x8BA4;&#x9690;&#x85CF;&#xFF09;&#x3002;</em></strong></p>
<blockquote style="border-color: blue;"><p>&#x8868;&#x683C;&#x884C;&#x7F16;&#x8F91;</p></blockquote>

<p>&#x8868;&#x683C;&#x884C;&#x7F16;&#x8F91;&#x529F;&#x80FD;&#x5171;&#x6709;3&#x4E2A;&#x5F00;&#x5173;&#xFF0C;&#x5176;&#x4E2D;&#x8868;&#x683C;&#x90E8;&#x4EF6;&#x548C;&#x8868;&#x683C;&#x5217;&#x5F00;&#x542F;&#x884C;&#x7F16;&#x8F91;&#x529F;&#x80FD;&#xFF0C;&#x8BE5;&#x8868;&#x683C;&#x90E8;&#x4EF6;&#x624D;&#x5177;&#x5907;&#x884C;&#x7F16;&#x8F91;&#x529F;&#x80FD;&#x3002;&#x800C;&#x89C6;&#x56FE;&#x4E0A;&#x9ED8;&#x8BA4;&#x5F00;&#x542F;&#x884C;&#x7F16;&#x8F91;&#x5F00;&#x5173;&#x662F;&#x7528;&#x6765;&#x63A7;&#x5236;&#x8868;&#x683C;&#x90E8;&#x4EF6;&#x9ED8;&#x8BA4;&#x662F;&#x5426;&#x5F00;&#x542F;&#x884C;&#x7F16;&#x8F91;&#x3002;&#x5F00;&#x542F;&#x884C;&#x7F16;&#x8F91;&#x540E;&#xFF0C;&#x8868;&#x683C;&#x6570;&#x636E;&#x5217;&#x5BF9;&#x5E94;&#x4F1A;&#x83B7;&#x53D6;&#x6620;&#x5C04;&#x7684;&#x7F16;&#x8F91;&#x5668;&#x4EE3;&#x7801;&#xFF08;&#x7F16;&#x8F91;&#x5668;&#x7684;GRIDEIDTOR.vue.ftl&#x6587;&#x4EF6;&#xFF09;&#x8FDB;&#x884C;&#x7ED8;&#x5236;&#x3002;&#x5728;&#x6570;&#x636E;&#x53D8;&#x5316;&#x65F6;&#xFF0C;&#x8868;&#x683C;&#x5217;&#x7EDF;&#x4E00;&#x629B;gridEditItemChange&#x4E8B;&#x4EF6;&#x4EA4;&#x7531;&#x8868;&#x683C;&#x5904;&#x7406;&#x3002;&#x6838;&#x5FC3;&#x4EE3;&#x7801;&#x7247;&#x6BB5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript">/**
* &#x8868;&#x683C;&#x7F16;&#x8F91;&#x9879;&#x503C;&#x53D8;&#x5316;
*
* @public
* @param row &#x884C;&#x6570;&#x636E;
* @param property &#x5217;&#x7F16;&#x8F91;&#x9879;&#x540D;
* @param row &#x5217;&#x7F16;&#x8F91;&#x9879;&#x503C;
* @returns {void}
* @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
*/
public gridEditItemChange(row: any, property: string, value: any, rowIndex: number){
    row.rowDataState = row.rowDataState ? row.rowDataState : &quot;update&quot; ;
    if(Object.is(row.rowDataState,&quot;update&quot;)){
        if(!value &amp;&amp; this.defaultUpdateItems.includes(property)){
            row.hasUpdated = true;
        }
    }
    this.curEditRowData = row;
    this.validate(property,row,rowIndex);
&lt;#if ctrl.getPSDEGridEditItems()??&gt;
&lt;#list ctrl.getPSDEGridEditItems() as editItem&gt;
    &lt;#if editItem.getPSDEGridEditItemUpdate()??&gt;
    &lt;#assign itemUpdate=editItem.getPSDEGridEditItemUpdate()/&gt;
    if(Object.is(property, &apos;${editItem.name}&apos;)){
        const details: string[] = [&lt;#list itemUpdate.getPSDEGEIUpdateDetails() as detail&gt;&lt;#if detail_index gt 0&gt;, &lt;/#if&gt;&apos;${detail.getPSDEGridColumnName()?lower_case}&apos;&lt;/#list&gt;];
        this.updateGridEditItem(&apos;${itemUpdate.codeName}&apos;, row, details, ${itemUpdate.isShowBusyIndicator()?c});
    }
    &lt;/#if&gt;
&lt;/#list&gt;
&lt;/#if&gt;
}
</code></pre>
<blockquote style="border-color: blue;"><p>&#x8868;&#x683C;&#x9879;&#x66F4;&#x65B0;</p></blockquote>

<p>&#x5982;&#x4E0A;&#x8FF0;&#x4EE3;&#x7801;&#x7247;&#x6BB5;&#x6240;&#x793A;&#xFF0C;&#x5728;&#x8868;&#x683C;&#x7F16;&#x8F91;&#x9879;&#x503C;&#x53D8;&#x5316;&#x65F6;&#xFF0C;&#x4F1A;&#x5224;&#x65AD;&#x5F53;&#x524D;&#x8868;&#x683C;&#x7F16;&#x8F91;&#x9879;&#x662F;&#x5426;&#x6709;&#x8868;&#x683C;&#x66F4;&#x65B0;&#x9879;&#x903B;&#x8F91;&#xFF0C;&#x5982;&#x5B58;&#x5728;&#xFF0C;&#x6267;&#x884C;&#x8868;&#x683C;&#x7F16;&#x8F91;&#x9879;&#x66F4;&#x65B0;&#x903B;&#x8F91;&#xFF0C;&#x8C03;&#x7528;&#x63A5;&#x53E3;&#xFF0C;&#x56DE;&#x586B;&#x884C;&#x6570;&#x636E;&#x3002;&#x6838;&#x5FC3;&#x4EE3;&#x7801;&#x7247;&#x6BB5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript"><span class="hljs-comment">/**
* &#x8868;&#x683C;&#x7F16;&#x8F91;&#x9879;&#x66F4;&#x65B0;
*
* @param {string} mode &#x754C;&#x9762;&#x884C;&#x4E3A;&#x540D;&#x79F0;
* @param {*} [data={}] &#x8BF7;&#x6C42;&#x6570;&#x636E;
* @param {string[]} updateDetails &#x66F4;&#x65B0;&#x9879;
* @param {boolean} [showloading] &#x662F;&#x5426;&#x663E;&#x793A;&#x52A0;&#x8F7D;&#x72B6;&#x6001;
* @returns {void}
* @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
*/</span>
<span class="hljs-keyword">public</span> updateGridEditItem(mode: <span class="hljs-built_in">string</span>, data: <span class="hljs-built_in">any</span> = {}, updateDetails: <span class="hljs-built_in">string</span>[], showloading?: <span class="hljs-built_in">boolean</span>): <span class="hljs-built_in">void</span> {
    <span class="hljs-keyword">if</span> (!mode || (mode &amp;&amp; <span class="hljs-built_in">Object</span>.is(mode, <span class="hljs-string">&apos;&apos;</span>))) {
        <span class="hljs-keyword">return</span>;
    }
    <span class="hljs-keyword">const</span> arg: <span class="hljs-built_in">any</span> = <span class="hljs-built_in">JSON</span>.parse(<span class="hljs-built_in">JSON</span>.stringify(data));
    <span class="hljs-built_in">Object</span>.assign(arg,{viewparams:<span class="hljs-keyword">this</span>.viewparams});
    <span class="hljs-keyword">const</span> post: Promise&lt;<span class="hljs-built_in">any</span>&gt; = <span class="hljs-keyword">this</span>.service.frontLogic(mode,<span class="hljs-built_in">JSON</span>.parse(<span class="hljs-built_in">JSON</span>.stringify(<span class="hljs-keyword">this</span>.context)),arg, showloading);
    post.then((response: <span class="hljs-built_in">any</span>) =&gt; {
        <span class="hljs-keyword">if</span> (!response || response.status !== <span class="hljs-number">200</span>) {
            <span class="hljs-keyword">this</span>.$Notice.error({ title: (<span class="hljs-keyword">this</span>.$t(<span class="hljs-string">&apos;app.commonWords.wrong&apos;</span>) as <span class="hljs-built_in">string</span>), desc: (<span class="hljs-keyword">this</span>.$t(<span class="hljs-string">&apos;app.gridpage.formitemFailed&apos;</span>) as <span class="hljs-built_in">string</span>) });
            <span class="hljs-keyword">return</span>;
        }
        <span class="hljs-keyword">const</span> _data: <span class="hljs-built_in">any</span> = response.data;
        <span class="hljs-keyword">if</span>(!_data){
            <span class="hljs-keyword">return</span>;
        }
        updateDetails.forEach((name: <span class="hljs-built_in">string</span>) =&gt; {
            <span class="hljs-keyword">if</span> (!_data.hasOwnProperty(name)) {
                <span class="hljs-keyword">return</span>;
            }
            data[name] = _data[name];
        });
    }).catch((response: <span class="hljs-built_in">any</span>) =&gt; {
        <span class="hljs-keyword">if</span> (response &amp;&amp; response.status === <span class="hljs-number">401</span>) {
            <span class="hljs-keyword">return</span>;
        }
        <span class="hljs-keyword">if</span> (!response || !response.status || !response.data) {
            <span class="hljs-keyword">this</span>.$Notice.error({ title: (<span class="hljs-keyword">this</span>.$t(<span class="hljs-string">&apos;app.commonWords.wrong&apos;</span>) as <span class="hljs-built_in">string</span>), desc: (<span class="hljs-keyword">this</span>.$t(<span class="hljs-string">&apos;app.commonWords.sysException&apos;</span>) as <span class="hljs-built_in">string</span>) });
            <span class="hljs-keyword">return</span>;
        }
    });
}
</code></pre>
<blockquote style="border-color: blue;"><p>&#x65B0;&#x5EFA;&#x9ED8;&#x8BA4;&#x503C;</p></blockquote>

<p>&#x8868;&#x683C;&#x65B0;&#x5EFA;&#x884C;&#xFF0C;&#x6267;&#x884C;loadDraft&#x884C;&#x4E3A;&#x4E4B;&#x540E;&#x5F97;&#x5230;&#x884C;&#x6570;&#x636E;&#xFF0C;&#x5982;&#x679C;&#x6709;&#x65B0;&#x5EFA;&#x9ED8;&#x8BA4;&#x503C;&#x8BBE;&#x7F6E;&#xFF0C;&#x518D;&#x628A;&#x65B0;&#x5EFA;&#x9ED8;&#x8BA4;&#x503C;&#x5408;&#x5E76;&#x5230;&#x884C;&#x6570;&#x636E;&#x4E2D;&#xFF0C;&#x6700;&#x540E;&#x628A;&#x5408;&#x5E76;&#x7684;&#x6570;&#x636E;&#x5408;&#x5165;&#x5230;&#x8868;&#x683C;&#x6570;&#x636E;&#x4E2D;&#x3002;&#x6838;&#x5FC3;&#x4EE3;&#x7801;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code>/**
* &#x65B0;&#x5EFA;&#x9ED8;&#x8BA4;&#x503C;
* @param {*}  row &#x884C;&#x6570;&#x636E;
* @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
*/
public createDefault(row: any){                    
&lt;#list ctrl.getPSDEGridEditItems() as editItem&gt;&lt;#t&gt;
&lt;#if editItem.getCreateDV?? &amp;&amp; editItem.getCreateDV()??&gt;&lt;#t&gt;
&lt;#if !(editItem.getCreateDV() == &apos;&apos;) || editItem.getCreateDVT() == &apos;CURTIME&apos;&gt;&lt;#t&gt;
    if (row.hasOwnProperty(&apos;${editItem.getCodeName()?lower_case}&apos;)) {
    &lt;#-- &#x7F51;&#x9875;&#x8BF7;&#x6C42; --&gt;
    &lt;#if editItem.getCreateDVT() == &apos;CONTEXT&apos;&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = this.viewparams[&apos;${editItem.getCreateDV()}&apos;];
    &lt;#-- &#x7528;&#x6237;&#x5168;&#x5C40;&#x5BF9;&#x8C61; --&gt;
    &lt;#elseif editItem.getCreateDVT() == &apos;SESSION&apos;&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = this.context[&apos;${editItem.getCreateDV()}&apos;];
    &lt;#-- &#x5F53;&#x524D;&#x5E94;&#x7528;&#x6570;&#x636E; --&gt;
    &lt;#elseif editItem.getCreateDVT() == &apos;APPDATA&apos;&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = this.context[&apos;${editItem.getCreateDV()}&apos;];
    &lt;#-- &#x5F53;&#x524D;&#x64CD;&#x4F5C;&#x7528;&#x6237;(&#x540D;&#x79F0;) --&gt;
    &lt;#elseif editItem.getCreateDVT() == &apos;OPERATORNAME&apos;&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = this.context[&apos;srfusername&apos;];
    &lt;#-- &#x5F53;&#x524D;&#x64CD;&#x4F5C;&#x7528;&#x6237;(&#x7F16;&#x53F7;) --&gt;
    &lt;#elseif editItem.getCreateDVT() == &apos;OPERATOR&apos;&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = this.context[&apos;srfuserid&apos;];
    &lt;#-- &#x5F53;&#x524D;&#x65F6;&#x95F4; --&gt;
    &lt;#elseif editItem.getCreateDVT() == &apos;CURTIME&apos;&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = this.$util.dateFormat(new Date());
    &lt;#else&gt;
    &lt;#-- &#x9ED8;&#x8BA4;&#x503C; --&gt;
    &lt;#assign datatype=srfjavatype(editItem.getPSAppDEField().getStdDataType())&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = &lt;#if datatype==&apos;BigInteger&apos; || datatype==&apos;Integer&apos; || datatype==&apos;Double&apos; || datatype==&apos;Decimal&apos; || datatype==&apos;Float&apos; || datatype==&apos;BigDecimal&apos;&gt;${editItem.getCreateDV()}&lt;#else&gt;&apos;${editItem.getCreateDV()}&apos;&lt;/#if&gt;;
    &lt;/#if&gt;
    }
&lt;/#if&gt;
&lt;/#if&gt;
&lt;/#list&gt;
}
</code></pre><blockquote style="border-color: blue;"><p>&#x66F4;&#x65B0;&#x9ED8;&#x8BA4;&#x503C;</p></blockquote>

<p>&#x8868;&#x683C;&#x5728;&#x6570;&#x636E;&#x4FDD;&#x5B58;&#x4E4B;&#x524D;&#xFF0C;&#x4F1A;&#x901A;&#x8FC7;&#x884C;&#x6570;&#x636E;&#x72B6;&#x6001;&#x503C;(rowDataState)&#x8FDB;&#x884C;&#x5224;&#x65AD;&#xFF0C;&#x82E5;&#x503C;&#x4E3A;update&#x4F1A;&#x5148;&#x6267;&#x884C;&#x66F4;&#x65B0;&#x503C;&#x5408;&#x5165;&#x884C;&#x6570;&#x636E;&#xFF0C;&#x518D;&#x628A;&#x6570;&#x636E;&#x63D0;&#x4EA4;&#x5230;&#x540E;&#x53F0;&#x3002;&#x6838;&#x5FC3;&#x4EE3;&#x7801;&#x7247;&#x6BB5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code>/**
* &#x66F4;&#x65B0;&#x9ED8;&#x8BA4;&#x503C;
* @param {*}  row &#x884C;&#x6570;&#x636E;
* @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
*/
public updateDefault(row: any){                    
&lt;#list ctrl.getPSDEGridEditItems() as editItem&gt;&lt;#t&gt;
&lt;#if editItem.getUpdateDV?? &amp;&amp; editItem.getUpdateDV()??&gt;&lt;#t&gt;
&lt;#if !(editItem.getUpdateDV() == &apos;&apos;) || editItem.getUpdateDVT() == &apos;CURTIME&apos;&gt;&lt;#t&gt;
    if (row.hasOwnProperty(&apos;${editItem.getCodeName()?lower_case}&apos;) &amp;&amp; !row.${editItem.getCodeName()?lower_case} &amp;&amp; !row.hasUpdated) {
    &lt;#-- &#x7F51;&#x9875;&#x8BF7;&#x6C42; --&gt;
    &lt;#if editItem.getUpdateDVT() == &apos;CONTEXT&apos;&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = this.viewparams[&apos;${editItem.getUpdateDV()}&apos;];
    &lt;#-- &#x7528;&#x6237;&#x5168;&#x5C40;&#x5BF9;&#x8C61; --&gt;
    &lt;#elseif editItem.getUpdateDVT() == &apos;SESSION&apos;&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = this.context[&apos;${editItem.getUpdateDV()}&apos;];
    &lt;#-- &#x5F53;&#x524D;&#x5E94;&#x7528;&#x6570;&#x636E; --&gt;
    &lt;#elseif editItem.getUpdateDVT() == &apos;APPDATA&apos;&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = this.context[&apos;${editItem.getUpdateDV()}&apos;];
    &lt;#-- &#x5F53;&#x524D;&#x64CD;&#x4F5C;&#x7528;&#x6237;(&#x540D;&#x79F0;) --&gt;
    &lt;#elseif editItem.getUpdateDVT() == &apos;OPERATORNAME&apos;&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = this.context[&apos;srfusername&apos;];
    &lt;#-- &#x5F53;&#x524D;&#x64CD;&#x4F5C;&#x7528;&#x6237;(&#x7F16;&#x53F7;) --&gt;
    &lt;#elseif editItem.getUpdateDVT() == &apos;OPERATOR&apos;&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = this.context[&apos;srfuserid&apos;];
    &lt;#-- &#x5F53;&#x524D;&#x65F6;&#x95F4; --&gt;
    &lt;#elseif editItem.getUpdateDVT() == &apos;CURTIME&apos;&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = this.$util.dateFormat(new Date());
    &lt;#else&gt;
    &lt;#-- &#x9ED8;&#x8BA4;&#x503C; --&gt;
    &lt;#assign datatype=srfjavatype(editItem.getPSAppDEField().getStdDataType())&gt;
        row[&apos;${editItem.getCodeName()?lower_case}&apos;] = &lt;#if datatype==&apos;BigInteger&apos; || datatype==&apos;Integer&apos; || datatype==&apos;Double&apos; || datatype==&apos;Decimal&apos; || datatype==&apos;Float&apos; || datatype==&apos;BigDecimal&apos;&gt;${editItem.getUpdateDV()}&lt;#else&gt;&apos;${editItem.getUpdateDV()}&apos;&lt;/#if&gt;;
    &lt;/#if&gt;
    }
&lt;/#if&gt;
&lt;/#if&gt;
&lt;/#list&gt;
}
</code></pre><blockquote style="border-color: blue;"><p>&#x8868;&#x683C;&#x503C;&#x89C4;&#x5219;</p></blockquote>

<p>&#x8868;&#x683C;&#x503C;&#x89C4;&#x5219;&#x90E8;&#x5206;&#x53EF;&#x4EE5;&#x5212;&#x5206;&#x4E3A;&#x503C;&#x89C4;&#x5219;&#x6A21;&#x578B;&#x6570;&#x636E;&#x548C;&#x503C;&#x89C4;&#x5219;&#x6821;&#x9A8C;2&#x90E8;&#x5206;&#x5185;&#x5BB9;&#x3002;&#x503C;&#x89C4;&#x5219;&#x6A21;&#x578B;&#x6570;&#x636E;&#x5305;&#x542B;&#x7CFB;&#x7EDF;&#x503C;&#x89C4;&#x5219;&#x548C;&#x5C5E;&#x6027;&#x503C;&#x89C4;&#x5219;2&#x90E8;&#x5206;&#x5185;&#x5BB9;&#xFF0C;&#x7CFB;&#x7EDF;&#x503C;&#x89C4;&#x5219;&#x90E8;&#x5206;&#x5305;&#x542B;&#x6B63;&#x5219;&#x548C;javaScript&#x8868;&#x8FBE;&#x5F0F;2&#x90E8;&#x5206;&#xFF0C;&#x5C5E;&#x6027;&#x503C;&#x89C4;&#x5219;&#x5305;&#x542B;&#x6B63;&#x5219;&#x89C4;&#x5219;&#x3001;&#x6570;&#x503C;&#x8303;&#x56F4;&#x89C4;&#x5219;&#x3001;&#x5B57;&#x7B26;&#x957F;&#x5EA6;&#x89C4;&#x5219;&#x3001;&#x7CFB;&#x7EDF;&#x503C;&#x89C4;&#x5219;&#x548C;&#x89C4;&#x5219;&#x7EC4;5&#x90E8;&#x5206;&#x5185;&#x5BB9;&#x3002;&#x8BE6;&#x60C5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript">/**
 * &#x503C;&#x89C4;&#x5219;&#x96C6;&#x5408;
 *
 * @type {*}
 * @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
 */
public rules: any = {
    &lt;#list ctrl.getPSDEGridEditItems() as edititem&gt;
    ${edititem.getName()}: [
            { required: &lt;#if edititem.isAllowEmpty()&gt;false&lt;#else&gt;true&lt;/#if&gt;, validator: (rule:any, value:any, callback:any) =&gt; { return (rule.required &amp;&amp; (value === null || value === undefined || value === &quot;&quot;)) ? false : true;}, message: &lt;#if edititem.getCaption?? &amp;&amp; edititem.getCaption()??&gt;&apos;${edititem.getCaption()} &#x503C;&#x4E0D;&#x80FD;&#x4E3A;&#x7A7A;&apos;&lt;#else&gt;&apos;&#x503C;&#x4E0D;&#x80FD;&#x4E3A;&#x7A7A;&apos;&lt;/#if&gt;, trigger: &apos;change&apos; },
        { required: &lt;#if edititem.isAllowEmpty()&gt;false&lt;#else&gt;true&lt;/#if&gt;, validator: (rule:any, value:any, callback:any) =&gt; { return (rule.required &amp;&amp; (value === null || value === undefined || value === &quot;&quot;)) ? false : true;}, message: &lt;#if edititem.getCaption?? &amp;&amp; edititem.getCaption()??&gt;&apos;${edititem.getCaption()} &#x503C;&#x4E0D;&#x80FD;&#x4E3A;&#x7A7A;&apos;&lt;#else&gt;&apos;&#x503C;&#x4E0D;&#x80FD;&#x4E3A;&#x7A7A;&apos;&lt;/#if&gt;, trigger: &apos;blur&apos; },
        &lt;#if ctrl.getPSDEGridEditItemVRs?? &amp;&amp; ctrl.getPSDEGridEditItemVRs()??&gt;
        &lt;#list ctrl.getPSDEGridEditItemVRs() as fideValueRule&gt;
            &lt;#if fideValueRule.getPSDEGridEditItemName() == edititem.getName()&gt;
            &lt;#if fideValueRule.getPSSysValueRule()??&gt;
                &lt;#assign  valueRule = fideValueRule.getPSSysValueRule()/&gt;
                &lt;#if valueRule.getRuleType?? &amp;&amp; valueRule.getRuleType()??&gt;
                &lt;#if valueRule.getRuleType() == &quot;REG&quot;&gt;
        { &lt;#if valueRule.getRegExCode?? &amp;&amp; valueRule.getRegExCode()??&gt;pattern: /^${valueRule.getRegExCode()}$/&lt;/#if&gt;&lt;#if valueRule.getRuleInfo?? &amp;&amp;  valueRule.getRuleInfo()??&gt;, message: &apos;${valueRule.getRuleInfo()}&apos;&lt;/#if&gt;, trigger: &apos;change&apos; },
                &lt;#elseif valueRule.getRuleType() == &quot;SCRIPT&quot;&gt;
        { &lt;#if valueRule.getScriptCode?? &amp;&amp; valueRule.getScriptCode()??&gt;validator: (rule:any, value:any, callback:any) =&gt; { ${valueRule.getScriptCode()} }&lt;/#if&gt;&lt;#if valueRule.getRuleInfo?? &amp;&amp;  valueRule.getRuleInfo()??&gt;, message: &apos;${valueRule.getRuleInfo()}&apos;&lt;/#if&gt;, trigger: &apos;change&apos; },
                &lt;/#if&gt;
                &lt;/#if&gt;
            &lt;/#if&gt;
            &lt;#if fideValueRule.getPSDEFValueRule()??&gt;
            &lt;#assign  valueRule = fideValueRule.getPSDEFValueRule()/&gt;
                &lt;#if fideValueRule.getPSDEGridEditItemName?? &amp;&amp; fideValueRule.getPSDEGridEditItemName()??&gt;
        {validator:(rule:any, value:any, callback:any)=&gt;{return this.verifyDeRules(&quot;${fideValueRule.getPSDEGridEditItemName()}&quot;,this.deRules,&quot;AND&quot;,value).isPast},message: &quot;&lt;#if valueRule.getRuleInfo()??&gt;${valueRule.getRuleInfo()}&lt;/#if&gt;&quot;, trigger: &apos;blur&apos; },
                &lt;/#if&gt;
            &lt;/#if&gt;
            &lt;/#if&gt;
        &lt;/#list&gt;
        &lt;/#if&gt;
    ],
    &lt;/#list&gt;
}

/**
 * &#x5C5E;&#x6027;&#x503C;&#x89C4;&#x5219;
 *
 * @type {*}
 * @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
 */
public deRules:any = {
    &lt;#if ctrl.getPSDEGridEditItemVRs?? &amp;&amp; ctrl.getPSDEGridEditItemVRs()??&gt;
    &lt;#list ctrl.getPSDEGridEditItemVRs() as fideValueRule&gt;
        &lt;#if fideValueRule.getCheckMode?? &amp;&amp; fideValueRule.getCheckMode()?? &amp;&amp; fideValueRule.getCheckMode() != 2 &amp;&amp; fideValueRule.getPSDEFValueRule?? &amp;&amp; fideValueRule.getPSDEFValueRule()??&gt;
            &lt;#assign  deRule = fideValueRule.getPSDEFValueRule()/&gt;
            &lt;#if fideValueRule.getPSDEGridEditItemName?? &amp;&amp; fideValueRule.getPSDEGridEditItemName()??&gt;
            ${fideValueRule.getPSDEGridEditItemName()}:[
            &lt;#if deRule.getPSDEFVRGroupCondition?? &amp;&amp; deRule.getPSDEFVRGroupCondition()?? &amp;&amp; deRule.getPSDEFVRGroupCondition().getPSDEFVRConditions?? &amp;&amp;  deRule.getPSDEFVRGroupCondition().getPSDEFVRConditions()??&gt;
            &lt;#list deRule.getPSDEFVRGroupCondition().getPSDEFVRConditions() as condItem&gt;
                &lt;@getDeRule condItem /&gt;
            &lt;/#list&gt;
            &lt;/#if&gt;],
            &lt;/#if&gt;
        &lt;/#if&gt;
    &lt;/#list&gt;
    &lt;/#if&gt;
};
</code></pre>
<p>&#x503C;&#x89C4;&#x5219;&#x6821;&#x9A8C;&#x90E8;&#x5206;&#x53EF;&#x5206;&#x4E3A;&#x8868;&#x683C;&#x7F16;&#x8F91;&#x9879;&#x503C;&#x53D8;&#x5316;&#x6267;&#x884C;&#x5F53;&#x524D;&#x7F16;&#x8F91;&#x9879;&#x503C;&#x89C4;&#x5219;&#x6821;&#x9A8C;&#xFF0C;&#x6821;&#x9A8C;&#x4E0D;&#x901A;&#x8FC7;&#x663E;&#x793A;&#x9519;&#x8BEF;&#x4FE1;&#x606F;&#x548C;&#x5F53;&#x6570;&#x636E;&#x4FDD;&#x5B58;&#x65F6;&#xFF0C;&#x4F1A;&#x5BF9;&#x6BCF;&#x6761;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x503C;&#x89C4;&#x5219;&#x6821;&#x9A8C;&#xFF0C;&#x6821;&#x9A8C;&#x4E0D;&#x901A;&#x8FC7;&#xFF0C;&#x505C;&#x6B62;&#x63D0;&#x4EA4;&#x6570;&#x636E;&#xFF0C;&#x63D0;&#x793A;&#x6821;&#x9A8C;&#x4FE1;&#x606F;2&#x79CD;&#x60C5;&#x51B5;&#x3002;&#x8BE6;&#x60C5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript"><span class="hljs-comment">/**
 * &#x8868;&#x683C;&#x884C;&#x7F16;&#x8F91;&#x9879;&#x6821;&#x9A8C;
 *
 * @param {string} property &#x5C5E;&#x6027;&#x540D;
 * @param {*} data &#x884C;&#x6570;&#x636E;
 * @param {number} rowIndex &#x884C;&#x7D22;&#x5F15;
 * @returns Promise&lt;any&gt;
 * 
 * @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
 */</span>
<span class="hljs-keyword">public</span> validate(property:<span class="hljs-built_in">string</span>, data:<span class="hljs-built_in">any</span>, rowIndex:<span class="hljs-built_in">number</span>):Promise&lt;<span class="hljs-built_in">any</span>&gt;{
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> Promise((resolve, reject) =&gt; {
        <span class="hljs-keyword">this</span>.$util.validateItem(property,data,<span class="hljs-keyword">this</span>.rules).then(()=&gt;{
            <span class="hljs-keyword">this</span>.gridItemsModel[rowIndex][property].setError(<span class="hljs-literal">null</span>);
            resolve(<span class="hljs-literal">true</span>);
        }).catch(({ errors, fields }) =&gt; {
            <span class="hljs-keyword">this</span>.gridItemsModel[rowIndex][property].setError(errors[<span class="hljs-number">0</span>].message);
            resolve(<span class="hljs-literal">false</span>);
        });
    });
}

<span class="hljs-comment">/**
 * &#x6821;&#x9A8C;&#x6240;&#x6709;&#x4FEE;&#x6539;&#x8FC7;&#x7684;&#x7F16;&#x8F91;&#x9879;
 *
 * @returns Promise&lt;any&gt;
 * @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
 */</span>
<span class="hljs-keyword">public</span> async validateAll(){
    <span class="hljs-keyword">let</span> validateState = <span class="hljs-literal">true</span>;
    <span class="hljs-keyword">let</span> index = <span class="hljs-number">-1</span>;
    <span class="hljs-keyword">for</span>(<span class="hljs-keyword">let</span> item of <span class="hljs-keyword">this</span>.items){
        index++;
        <span class="hljs-keyword">if</span>(item.rowDataState === <span class="hljs-string">&quot;create&quot;</span> || item.rowDataState === <span class="hljs-string">&quot;update&quot;</span>){
        <span class="hljs-keyword">for</span>(<span class="hljs-keyword">let</span> property of <span class="hljs-built_in">Object</span>.keys(<span class="hljs-keyword">this</span>.rules)){
            <span class="hljs-keyword">if</span>(!await <span class="hljs-keyword">this</span>.validate(property,item,index)){
            validateState = <span class="hljs-literal">false</span>;
            }
        }
        }
    }
    <span class="hljs-keyword">return</span> validateState;
}
</code></pre>
<blockquote style="border-color: blue;"><p>&#x8868;&#x683C;&#x6570;&#x636E;&#x5BFC;&#x5165;&#x5BFC;&#x51FA;</p></blockquote>

<h4 id="&#x8868;&#x683C;&#x6570;&#x636E;&#x5BFC;&#x5165;">&#x8868;&#x683C;&#x6570;&#x636E;&#x5BFC;&#x5165;</h4>
<p>&#x8868;&#x683C;&#x6570;&#x636E;&#x5BFC;&#x5165;&#x4F9D;&#x8D56;&#x8868;&#x683C;&#x5BFC;&#x5165;&#x6570;&#x636E;&#x6A21;&#x578B;&#xFF0C;&#x8868;&#x683C;&#x4E2D;&#x51C6;&#x5907;&#x5BFC;&#x5165;&#x6570;&#x636E;&#x6240;&#x9700;&#x53C2;&#x6570;&#x9879;&#xFF0C;&#x4EA4;&#x7531;<a href="http://demo.ibizlab.cn/ibizr7pfstdtempl/ibizvuer7res/tree/master/src/components/app-data-upload" target="_blank">app-data-upload&#x7EC4;&#x4EF6;</a>&#x5904;&#x7406;&#xFF0C;&#x8BE6;&#x60C5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript">/**
 * &#x6570;&#x636E;&#x5BFC;&#x5165;
 *
 * @param {*} data
 * @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
 */
public importExcel(data:any ={}):void{
    //&#x5BFC;&#x5165;excel
    const importDataModel:any ={
    &lt;#if ctrl.getPSDEDataImport?? &amp;&amp; ctrl.getPSDEDataImport()??&gt;
    &lt;#assign dataImport = ctrl.getPSDEDataImport() /&gt;
        importId:&apos;${dataImport.getCodeName()}&apos;,
        serviceName:&apos;${dataImport.getPSAppDataEntity().getCodeName()?lower_case}&apos;,
        appDeLogicName:&apos;${dataImport.getPSAppDataEntity().getLogicName()}&apos;,
        importData:{
        &lt;#if dataImport.getPSDEDataImportItems()??&gt;
        &lt;#list dataImport.getPSDEDataImportItems() as dataImportItem&gt;
        &quot;${dataImportItem.getName()}&quot;:{&lt;#if dataImportItem.getPSCodeList()??&gt;&lt;#assign codelist = dataImportItem.getPSCodeList()/&gt;&quot;codelist&quot;:{&quot;type&quot;:&quot;${codelist.getCodeListType()}&quot;,&quot;tag&quot;:&quot;${codelist.getCodeName()}&quot;,&quot;isnumber&quot;:${codelist.isCodeItemValueNumber()?c}},&lt;/#if&gt;&quot;headername&quot;:&quot;${dataImportItem.getCaption()}&quot;,&quot;isuniqueitem&quot;:${dataImportItem.isUniqueItem()?c},&lt;#if dataImportItem.getPSAppDEField()??&gt;&lt;#assign appDeField = dataImportItem.getPSDEField()/&gt;&quot;name&quot;:&quot;${appDeField.getCodeName()?lower_case}&quot;,&quot;order&quot;:&lt;#if appDeField.getImportOrder()??&gt;${appDeField.getImportOrder()?c}&lt;/#if&gt;&lt;/#if&gt;}&lt;#if dataImportItem_has_next&gt;,&lt;/#if&gt;
        &lt;/#list&gt;
        &lt;/#if&gt;
        }
    &lt;/#if&gt;
    }
    if(Object.keys(importDataModel).length == 0){
        this.$Notice.warning({ &apos;title&apos;: (this.$t(&quot;app.utilview.warning&quot;) as string), &apos;desc&apos;: (this.$t(&quot;app.utilview.info&quot;) as string) });
        return;
    }
    const view:any ={
        viewname: &apos;app-data-upload&apos;,
        title: this.$t(&quot;app.utilview.importview&quot;),
        width: 900,
        height: 700
    }
    let container: Subject&lt;any&gt; = this.$appmodal.openModal(view, JSON.parse(JSON.stringify(this.context)), importDataModel);
    container.subscribe((result: any) =&gt; {
        if(Object.is(result.ret,&apos;OK&apos;)){
        this.refresh(result.datas);
        }
    });
}
</code></pre>
<h4 id="&#x8868;&#x683C;&#x6570;&#x636E;&#x5BFC;&#x51FA;">&#x8868;&#x683C;&#x6570;&#x636E;&#x5BFC;&#x51FA;</h4>
<p>&#x8868;&#x683C;&#x6570;&#x636E;&#x5BFC;&#x51FA;&#x4F9D;&#x8D56;&#x6570;&#x636E;&#x5BFC;&#x51FA;&#x9879;&#xFF0C;&#x8868;&#x683C;&#x4F1A;&#x53BB;&#x540E;&#x53F0;&#x52A0;&#x8F7D;&#x6570;&#x636E;&#xFF0C;&#x901A;&#x8FC7;&#x8868;&#x683C;&#x670D;&#x52A1;&#x8F6C;&#x5316;&#x6210;&#x8868;&#x683C;&#x5BFC;&#x51FA;&#x9700;&#x8981;&#x7684;&#x6570;&#x636E;&#xFF0C;&#x6700;&#x540E;&#x628A;&#x8FD4;&#x56DE;&#x6570;&#x636E;&#x5199;&#x5165;excel&#x4E2D;&#xFF0C;&#x5B8C;&#x6210;&#x5BFC;&#x51FA;&#x3002;&#x8BE6;&#x60C5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript">/**
 * &#x6570;&#x636E;&#x5BFC;&#x51FA;
 *
 * @param {*} data
 * @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
 */
public exportExcel(data: any = {}): void {
    // &#x5BFC;&#x51FA;Excel
    const doExport = async (_data:any) =&gt; {
        const tHeader: Array&lt;any&gt; = [];
        const filterVal: Array&lt;any&gt; = [];
&lt;#if hasDEExport&gt;
        this.allExportColumns.forEach((item: any) =&gt; {
&lt;#else&gt;
        this.allColumns.forEach((item: any) =&gt; {
&lt;/#if&gt;
            item.show &amp;&amp; item.label ? tHeader.push(this.$t(item.langtag)) : &quot;&quot;;
            item.show &amp;&amp; item.name ? filterVal.push(item.name) : &quot;&quot;;
        });
        const data = await this.formatExcelData(filterVal, _data);
        this.$export.exportExcel().then((excel:any)=&gt;{
            excel.export_json_to_excel({
                header: tHeader, //&#x8868;&#x5934; &#x5FC5;&#x586B;
                data, //&#x5177;&#x4F53;&#x6570;&#x636E; &#x5FC5;&#x586B;
                filename: &quot;${ctrl.getPSAppDataEntity().getLogicName()}&quot;+(this.$t(&apos;app.gridpage.grid&apos;) as string), //&#x975E;&#x5FC5;&#x586B;
                autoWidth: true, //&#x975E;&#x5FC5;&#x586B;
                bookType: &quot;xlsx&quot; //&#x975E;&#x5FC5;&#x586B;
            });
        }); 
    };
    const page: any = {};
    // &#x8BBE;&#x7F6E;page&#xFF0C;size
    if (Object.is(data.type, &apos;maxRowCount&apos;)) {
        Object.assign(page, { page: 0, size: data.maxRowCount });
    } else if (Object.is(data.type, &apos;activatedPage&apos;)) {
&lt;#if hasDEExport&gt;
        Object.assign(page, { page: this.curPage-1, size: this.limit });
&lt;#else&gt;
        try {
            doExport(JSON.parse(JSON.stringify(this.items)));
        } catch (error) {
            console.error(error);
        }
        return;
&lt;/#if&gt;
    }
    // &#x8BBE;&#x7F6E;&#x6392;&#x5E8F;
    if (!this.isNoSort &amp;&amp; !Object.is(this.minorSortDir, &apos;&apos;) &amp;&amp; !Object.is(this.minorSortPSDEF, &apos;&apos;)) {
        const sort: string = this.minorSortPSDEF+&quot;,&quot;+this.minorSortDir;
        Object.assign(page, { sort: sort });
    }
    const arg: any = {};
    Object.assign(arg, page);
    // &#x83B7;&#x53D6;query,&#x641C;&#x7D22;&#x8868;&#x5355;&#xFF0C;viewparams&#x7B49;&#x7236;&#x6570;&#x636E;
    const parentdata: any = {};
    this.$emit(&apos;beforeload&apos;, parentdata);
    Object.assign(arg, parentdata);
&lt;#if hasDEExport&gt;
    const post: Promise&lt;any&gt; = this.service.searchDEExportData(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
&lt;#else&gt;
    const post: Promise&lt;any&gt; = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
&lt;/#if&gt;
    post.then((response: any) =&gt; {
        if (!response || response.status !== 200) {
            this.$Notice.error({ title: &apos;&apos;, desc: (this.$t(&apos;app.gridpage.exportFail&apos;) as string)+&apos;,&apos; + response.info });
            return;
        }
        try {
            doExport(JSON.parse(JSON.stringify(response.data)));
        } catch (error) {
            console.error(error);
        }
    }).catch((response: any) =&gt; {
        if (response &amp;&amp; response.status === 401) {
            return;
        }
        this.$Notice.error({ title: &apos;&apos;, desc: (this.$t(&apos;app.gridpage.exportFail&apos;) as string) });
    });
}
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="FORM.html" class="navigation navigation-prev " aria-label="Previous page: 表单">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="GRIDEXPBAR.html" class="navigation navigation-next " aria-label="Next page: 表格导航">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"表格","level":"2.3.2","depth":2,"next":{"title":"表格导航","level":"2.3.3","depth":2,"path":"CTRLS/GRIDEXPBAR.md","ref":"./CTRLS/GRIDEXPBAR.md","articles":[]},"previous":{"title":"表单","level":"2.3.1","depth":2,"path":"CTRLS/FORM.md","ref":"./CTRLS/FORM.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"CTRLS/GRID.md","mtime":"2020-09-12T03:25:30.222Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-11-02T06:38:45.289Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

